﻿ @model IEnumerable<WebVideo.EntityNew>
<script type="text/javascript">document.body.className = 'no-js'</script>
@{
               ViewBag.Title = "Tin tức";
}
<div class="inner-container" id="inner-container" style="width:8000px">
    <div class="wrap-widget">
        <div class="inner-widget _8">
            <h1>Tin tức</h1>
                <div class="widget _2x3 phone bg-color-DarkCyan">
                    	<div class="widget-content">
                        	  @Html.Action("_LeftMenuTypeNews", "TinTuc")
                        </div><!--/ .widget-content-->
                </div><!--/ .widget-->  
                <div class="pagination pagination-right">
                    @*  <ul>
                        <li class="disabled"><a href="#">«</a></li>
                        <li class="active"><a href="#">1</a></li>
                        <li><a href="#">2</a></li>
                        <li><a href="#">3</a></li>
                        <li><a href="#">4</a></li>
                        <li><a href="#">5</a></li>
                        <li><a href="#">»</a></li>
                      </ul>*@
                </div><!--/ .pagination-->

				@{ 
					int i = 0;
					foreach (var item in Model)
					{
						if (i == 0)
						{
							<div class="widget _2x2">
								@{
										string k = "";
										if(item.Image == null)
										{
											 k = "~/Content/Images/TinTuc/no-image.jpg";
										}
										else
										{
											k = "~/Content/Images/TinTuc/" + item.Image.ToString();
										}
										 <img src="@Url.Content(k)" width="305" height="305" />
								}
								   
									<div class="description news">
										<h2>
											<a href="@Url.Action("Detail", "TinTuc", new { IdNew= @item.Id })">
												@item.Title
												<br />
												<small class="date">@item.Date</small>
											</a>
										</h2>
									</div><!--/ description-->
							</div><!--/ .widget-->
						}
						else
						{
								<div class="widget">
									 @{
										string k = "";
										if(item.Image == null)
										{
											 k = "~/Content/Images/TinTuc/no-image.jpg";
										}
										else
										{
											k = "~/Content/Images/TinTuc/" + item.Image.ToString();
										}
										 <img src="@Url.Content(k)" width="161" height="100" />
									 }
							  
									<div class="description news">
										<h2>
											<a href="@Url.Action("Detail", "TinTuc", new { IdNew= @item.Id })">
												@item.Title
												<br />
												<small class="date">@item.Date</small>
											</a>
										</h2>
									</div><!--/ description-->
								</div><!--/ .widget-->
						}
						i++;
					}     
				}                       
                </div><!--/ .inner-widget-->
            </div><!--/ .wrap-widget -->
         </div><!--/ .inner-container-->
@section occasionalScripts {
    <script type="text/javascript" src="@Url.Content("~/Content/cssFrontEnd/js/jquery.min.js")" ></script>
    <script type="text/javascript" src="@Url.Content("~/Content/cssFrontEnd/js/load.js")" ></script>
    <script type="text/javascript" src="@Url.Content("~/Content/cssFrontEnd/js/styles.js")" ></script>
    <script type="text/javascript" src="@Url.Content("~/Content/cssFrontEnd/js/jquery.nicescroll.min.js")" ></script>
}
